<template>
  <div>
  <div class="title">周末去哪儿</div>
    <ul>
        <li class="item" v-for="item in list" :key="item.id">
            <img :src=item.imgUrl class="item-img">
            <div class="item-info">
                <p class="item-title">{{item.title}}</p>
                <p class="item-desc">{{item.desc}}</p>
            </div>
        </li>
    </ul>
</div>
</template>

<script>
export default {
    name:'HomeWeekend',
    props:{
        list:Array
    }
}
</script>

<style scoped>
    .title{
            background: #eee;
            text-indent: .2rem;
            line-height: .8rem;
    }
    .item{
        border-bottom: 2px solid #eee;
    }
    .item-img{
        width: 100%;
        padding: .1rem;
        box-sizing: border-box;
    }
    .item-title{
        font-size: .32rem;
        font-weight: 500;
        margin: .1rem 0;
        padding: .05rem 0;
        text-indent: .2rem;
    }
    .item-desc{
        color:#ccc;
        text-indent: .2rem;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        margin: .1rem 0;
        padding: .1rem 0;
    }
</style>